import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:test/application.dart';
import 'package:test/components/baselayout.dart';
import 'package:test/pages/home/action.dart';
import 'package:test/utils/app_navigator.dart';
import 'package:test/utils/screen_adapter.dart';

import 'state.dart';

Widget buildView(HomeState state, Dispatch dispatch, ViewService viewService) {
  BuildContext context = viewService.context;

  return BaseLayout(
    key: Key('home'),
    body: Column(
      children: [Text("测试")],
    ),
    floatingActionButton: FloatingActionButton(
      child: Icon(Icons.add),
      tooltip: "添加测试",
      onPressed: () {
        AppNavigator.pushNamed(context, RouterName.login);
      },
    ),
  );
}
